<?php
	$moranguinho = 'nao';
	$logged = 'nao';
	$id='wrapper-single-bloguinho';
	get_header();
	the_post();

	wpb_set_post_views(get_the_ID());

?>
			<div class="wrapper-content">
				<?php include 'login-panel.php'; ?>
				<span class="clear"></span>
				<div class="topo-narrow-content">
					<a href="<?php bloginfo('url'); ?>/bloguinho" class="link-bloguinho"></a>
				</div>
				<div class="extra-wrapper-slide-diversao single-bloguinho">
					<div class="wrapper-content-blog-home">
						<div class="narrow-content">
							<div class="header-post">
								<img src="<?php bloginfo('template_directory')?>/img/morango-single-post.png?7" alt="" class="morango-single-post"/>
								<h2 class="tit-post"><?php the_title(); ?></h2>
								<span class="cat-post"><?php
									$category = get_the_category(); 
									echo $category[0]->cat_name;
									?></span>
						<div class="share"><div class="addthis_toolbox addthis_default_style addthis_" addthis:url="<?php the_permalink(); ?>" addthis:title="<?php the_title(); ?>"><a class="addthis_button_facebook at300b" title="Facebook" href="#"><span class="at16nc at300bs at15nc at15t_facebook at16t_facebook"><span class="at_a11y">Share on facebook</span></span></a><a class="addthis_button_twitter at300b" title="Tweet" href="#"><span class="at16nc at300bs at15nc at15t_twitter at16t_twitter"><span class="at_a11y">Share on twitter</span></span></a><a class="addthis_button_email at300b" target="_blank" title="E-mail" href="#"><span class="at16nc at300bs at15nc at15t_email at16t_email"><span class="at_a11y">Share on email</span></span></a><a class="addthis_button_pinterest_share at300b" target="_blank" title="Pinterest" href="#"><span class="at16nc at300bs at15nc at15t_pinterest_share at16t_pinterest_share"><span class="at_a11y">Share on pinterest_share</span></span></a><a class="addthis_button_compact at300m" href="#"><span class="at16nc at300bs at15nc at15t_compact at16t_compact"><span class="at_a11y">More Sharing Services</span></span></a></div>
						</div>
								<span class="clear"></span>
							</div>
							<span class="clear"></span>
							<div class="post-content">
								<?php the_content(); ?>
								<?php echo do_shortcode('[fbcomments width="545" count="on" num="3" countmsg="comentários" title="Comentários"]'); ?>
							</div>
						</div>
						<div class="sidebar-home">
							<ul>
								<li class="redes-sociais-sidebar">
									<div class="wrapper-sociais-sidebar">
										<span class="pinterest"><a target="_blank" href="<?php echo get_custom('pinterest'); ?>">Pinterest</a></span>
										<span class="facebook"><a target="_blank" href="<?php echo get_custom('facebook'); ?>">Facebook</a></span>
									</div>
								</li>
								<li class="mais-lidos-sidebar">
									<span class="tit-mais-lidos">Mais Lidos</span>
									<ul>
									<?php 
										$side_query = new WP_Query( array(
										'post_type' => 'post',
									    'meta_key' => 'wpb_post_views_count',
									    'orderby' => 'meta_value_num',
									    'posts_per_page' => 4
										) );
										if ( $side_query->have_posts() ) : while ( $side_query->have_posts() ) : $side_query->the_post(); ?>
											<li>
												<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('post-side-lista'); ?></a>
												<span class="tit-post"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></span>
												<span class="clear"></span>
											</li>
										<?php endwhile; else: ?>
										<?php endif; ?>
										<?php wp_reset_postdata(); ?>
										<span class="clear"></span>
									</ul>
									<li class="veja-outros-sidebar">
									<span class="tit-mais-lidos">Veja Outros Posts</span>
									<ul>
									<?php 
										$side_query2 = new WP_Query( array(
										'post_type' => 'post',
									    'posts_per_page' => 4
										) );
										if ( $side_query2->have_posts() ) : while ( $side_query2->have_posts() ) : $side_query2->the_post(); ?>
											<li>
												<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('post-side-lista'); ?></a>
												<span class="tit-post"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></span>
												<span class="clear"></span>
											</li>
										<?php endwhile; else: ?>
										<?php endif; ?>
										<?php wp_reset_postdata(); ?>
										<span class="clear"></span>
									</ul>
								</li>
							</ul>
						</div>
						<span class="clear"></span>
					</div>
					<span class="clear"></span>
				</div><!-- /extra-wrapper-slide-diversao -->
				<span class="clear"></span>
				<div class="bottom-narrow-content"></div>
				<span class="clear"></span>
				</div><!-- /wrapper-content -->
			<span class="clear"></span>
		</div><!-- /container -->
		<span class="clear"></span>
	</div> <!-- /wrapper-container -->
	<span class="clear"></span>
	<div class="wrapper-footer-destaques">
		<div class="destaque-produtos jogos-diversao-produtos">
			<?php include 'slide-produtos.php'; ?>
		</div><!-- /destaque-produtos -->
		<div class="wrapper-destaques-diversao destaques-menores">
			<div class="conteudo-exclusivo">
				<img src="<?php bloginfo('template_directory')?>/img/conteudos-exclusivos.png?5" alt=""/>
			</div>
					<ul>
						<li>
							<div class="tit-categoria">
								<a href="<?php bloginfo('url'); ?>/videos"><span class="amarelo">Vídeos</span>
								<img src="<?php bloginfo('template_directory')?>/img/moldura-destaque-categoria.png?6" alt=""/></a>
							</div>
							<div class="wrapper-img-destaque-diversao">
								<a href="<?php bloginfo('url'); ?>/videos"><img src="<?php bloginfo('template_directory')?>/img/diversao-destaque-videos.png" alt=""/></a>
							</div>
							<a href="<?php bloginfo('url'); ?>/videos" class="clique-aqui">Clique Aqui</a>
						</li>
						<li>
							<div class="tit-categoria">
								<a href="<?php bloginfo('url'); ?>/desenhos" ><span class="roxo">Desenhar</span>
								<img src="<?php bloginfo('template_directory')?>/img/moldura-destaque-categoria.png?6" alt=""/></a>
							</div>
							<div class="wrapper-img-destaque-diversao">
								<a href="<?php bloginfo('url'); ?>/desenhos"><img src="<?php bloginfo('template_directory')?>/img/diversao-destaque-desenhar.png?7" alt=""/></a>
							</div>
							<a href="<?php bloginfo('url'); ?>/desenhos" class="clique-aqui">Clique Aqui</a>
						</li>
						<li>
							<div class="tit-categoria">
								<a href="<?php bloginfo('url'); ?>/wallpapers"><span class="verde">Papéis de Parede</span>
								<img src="<?php bloginfo('template_directory')?>/img/moldura-destaque-categoria.png?6" alt=""/></a>
							</div>
							<div class="wrapper-img-destaque-diversao">
								<a href="<?php bloginfo('url'); ?>/wallpapers"><img src="<?php bloginfo('template_directory')?>/img/diversao-destaque-papeis.png?6" alt=""/></a>
							</div>
							<a href="<?php bloginfo('url'); ?>/wallpapers" class="clique-aqui">Clique Aqui</a>
						</li>
						<li class="no-margin-right">
							<div class="tit-categoria">
								<a href="<?php bloginfo('url'); ?>/jogos"><span class="roxo-amarelo">Jogar</span>
								<img src="<?php bloginfo('template_directory')?>/img/moldura-destaque-categoria.png?6" alt=""/></a>
							</div>
							<div class="wrapper-img-destaque-diversao">
								<a href="<?php bloginfo('url'); ?>/jogos"><img src="<?php bloginfo('template_directory')?>/img/diversao-destaque-jogar.png?6" alt=""/></a>
							</div>
							<a href="<?php bloginfo('url'); ?>/jogos" class="clique-aqui">Clique Aqui</a>
						</li>
						<span class="clear"></span>
					</ul>
			<span class="clear"></span>
		</div><!-- /wrapper-destaques-diversao -->
		<span class="clear"></span>
</div><!-- wrapper-footer-destaques-->
<?php get_footer(); ?>